package com.chenliang.mybatis.base;

import tk.mybatis.mapper.genid.GenId;

import java.util.Random;
import java.util.UUID;

/**
 * @program: myes
 * @description:
 * @author: 陈英俊
 * @create: 2021-09-16 14:11
 */
public class UUIdGenId implements GenId<Integer> {

    @Override
    public Integer genId(String table, String column) {
        // return UUID.randomUUID().toString().replaceAll("(-)", "");
        Random random = new Random();
        return random.nextInt();
    }
}
